package com.distributedDataBase.service;

import com.distributedDataBase.mapper.CartMapper;
import com.distributedDataBase.pojo.Cart;

import java.util.List;

public interface CartService {

    List<Cart> listAll();

    List<Cart> listByUserId(Integer userId);

    int delCart(Integer id, Integer userId);

    int altTotal(Integer id, Integer userId, Integer total);

    int addCart(Cart cart);

    Cart getByUidAndPid(Integer userId, Integer pid);
}
